package cc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * TODO
 *
 * @author My
 * @date 2021/6/22 14:53
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    ITestService testService;

    @GetMapping("/list.do")
    List<Test> list(){
        List<Test> list = testService.list();
        return list;
    }
}
